# {{ cookiecutter.project_name }} — local commands
# make run  |  python -m src.main
# make test |  pytest (install dev deps: pip install -e ".[dev]")
# make lint |  pylint (same dev install)
#
# Pick python, or python3 if python is missing. Override: make PYTHON=python3 run
PYTHON ?= $(shell command -v python >/dev/null 2>&1 && echo python || echo python3)

.PHONY: run test lint 

run:
	$(PYTHON) -m src.main

test:
	$(PYTHON) -m pytest tests/ -v --tb=short

lint:
	$(PYTHON) -m pylint src tests
